<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/11/7 0007
 * Time: 9:41
 */

/**
 * 手机网站支付接口同步返回参数
 */
class GlobalCreateForexTradeWapResponse
{
    protected $response;

    public function __construct($response)
    {
        $this->response = $response;
    }

    /**
     * 签名方式 DSA, RSA, MD5.
     * @return null|string
     */
    public function getSignType()
    {
        return (empty($this->response) || empty($this->response['sign_type']))? null : $this->response['sign_type'];
    }

    /**
     * 签名
     * @return null|string
     */
    public function getSign()
    {
        return (empty($this->response) || empty($this->response['sign']))? null : $this->response['sign'];
    }

    /**
     * 交易状态
     * @return null|string
     */
    public function getTradeStatus()
    {
        return (empty($this->response) || empty($this->response['trade_status']))? null : $this->response['trade_status'];
    }
}